﻿using Comm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kinlo.MesCheck
{
    public class MESCheck
    {
        public static string GroupNameCheck(string MainSN, string GroupName, string MO,string Process,string Userid)
        {
            var client = new WebReference.MESInterface();
            client.Url = GlobalValues.MESUrl;
            return client.GroupNameCheck(MainSN, GroupName, MO, Process, Userid);
        }


        //CellBOMItemsCheck
        public static string CellBOMItemsCheck(string M_SN, string M_MO, string M_USERNO, string M_MACHINENO, string M_KP_ITEMSN_ALL)
        {
            var client = new WebReference.MESInterface();
            client.Url = GlobalValues.MESUrl;
            return client.CellBOMItemsCheck(M_SN, M_MO, M_USERNO, M_MACHINENO, M_KP_ITEMSN_ALL);
        }


        public static string CheckProductMoNumber(string product, string moNumber)
        {
            var client = new WebReference.MESInterface();
            client.Url = GlobalValues.MESUrl;
            return client.CheckProductMoNumber(product, moNumber);
        }
    }
}
